﻿<?php
require_once (ABSPATH . WPINC . '/rss.php');
$feed_url = 'http://api.fanfou.com/statuses/user_timeline.rss?id=ihao&count=1';
$rss = @fetch_rss($feed_url);
if ( isset($rss->items) && 0 < count($rss->items) ) { 
	$rss->items = array_slice($rss->items, 0, 1);
	foreach ($rss->items as $item ) {
		$ihao_ing = preg_replace( '|ihao：(.+)?|s', '$1', $item['title'] );
?>
		<p class="ing"> <span><a href="/ings/"><?php echo $ihao_ing; ?></a> </span> &raquo; <?php printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() ) ) ); ?></p>
	<?php } 
} ?>